<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">

    <h:body>
    
    	este e o Left.
    <h:form id="form">
    	<p:accordionPanel>
	<p:tab title="Cadastros">
		<h:panelGrid columns="1" cellpadding="10" >
			<p:commandLink value="Ocorrencias" update=":form:display" oncomplete="carDialog.show()" ></p:commandLink>
			<p:commandLink value="Clientes"></p:commandLink>
			<p:commandLink value="Equipamentos"></p:commandLink>
		</h:panelGrid>
	</p:tab>
	<p:tab title="Grupos">
		<h:panelGrid columns="2" cellpadding="10">
			<p:graphicImage value="/images/godfather/godfather2.jpg" />
			<h:outputText value="Francis ." />
		</h:panelGrid>
	</p:tab>
	<p:tab title="Relatorios">
		<h:panelGrid columns="2" cellpadding="10">
			<p:graphicImage value="/images/godfather/godfather3.jpg" />
			<h:outputText value="After a break ." />
		</h:panelGrid>
	</p:tab>
</p:accordionPanel>
	
	<p:dialog header="Ocorrencia" widgetVar="carDialog" resizable="false" id="carDlg"  
                showEffect="fade" hideEffect="explode" modal="true"> 	
                
                
                <h:panelGrid id="display" cellpadding="4" style="margin:0 auto; width:600px; height:500px;"> 
                
                
                <p:selectOneMenu value="#{clienteBeans.idcliente}">						
						<f:selectItem itemLabel="Escolha o Cliente..." itemValue=""
							noSelectionOption="true" />
						<f:selectItems value="#{clienteBeans.buscaTodosClientes()}" var="c"
							itemLabel="#{c.nomeCli}" itemValue="#{c.idcliente}" />
					</p:selectOneMenu>
                
  
           
  
            <h:outputText value="Ocorrencia:" />  <br/>
			<p:editor></p:editor>  
             
  			<p:graphicImage value="/resources/imagens/fechar1.png" style="float:left;position:absolute; margin-left: 30px; "/>
  			<p:graphicImage value="/resources/imagens/certo.png" style="margin-left: 120px; margin-top:-18px; float:left; "/>   
                <h:commandButton value="TesteSalv" action="#{OcorrenciaBean.salva()}"></h:commandButton>
                </h:panelGrid>
                
                </p:dialog>		
    
    </h:form>
    </h:body>
</html>
